<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <style>
        /* ul li {
            color: red;
        } */
        /* ul>.name {
            color: red;
        } */
        ul>li, ol>li {
            color: red;
        }
    </style>

    <ul>
        <li class="name">关羽</li>
        <li><span>关羽</span></li>
        <li>关羽</li>
    </ul>

    <ol>
        <li class="name">马超</li>
        <li><a href="#">马超</a></li>
        <li>马超</li>
    </ol>
</body>
</html>